//
//  JPFTextField.h
//  JPFUIKit
//
//  Created by jpf on 2021/8/26.
//  Copyright © 2021 jpf. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


typedef enum : NSUInteger {
    JPFTextFieldType_IntNumber = 1,
    JPFTextFieldType_2DecimalNumber = 2,
    JPFTextFieldType_Text = 3,
} JPFTextFieldType;

@interface JPFTextField : UITextField

//最大长度
@property(nonatomic,assign) IBInspectable NSInteger maxLength;
//数据格式校验
//2位小数 @"^\\d+(\\.\\d{0,2})?$"
//整数 @@"(^[1-9]\\d{0,}$)|(^0$)"
@property(nonatomic,assign) IBInspectable NSString *valRegex;
//值类型，1:整数，2:2位小数，JPFTextFieldType
@property(nonatomic,assign) IBInspectable NSInteger valueType;

@end

NS_ASSUME_NONNULL_END
